package com.zhijiaoyun.service;

import com.zhijiaoyun.model.Item;
import com.zhijiaoyun.service.core.IBaseService;

import java.util.List;

/**
 * @author shisfish
 * @date 2018/1/18
 */
public interface IItemService extends IBaseService<Item> {
    /**
     * get by key type
     *
     * @param key
     * @param type
     * @return
     */
    Item getByKeyType(String key, String type);

    /**
     * list by type
     *
     * @param subjectType
     * @return
     */
    List<Item> getByType(String subjectType);

    /**
     * list by type keys
     *
     * @param type
     * @param keys
     * @return
     */
    List<Item> getByKeysType(String type, List<String> keys);

    /**
     * get value by type key
     *
     * @param key
     * @param type
     * @return
     */
    String getValueByKeyType(String key, String type);
}

